package com.funo.wcity.app.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.funo.wcity.app.dao.TblUsersDAO;
import com.funo.wcity.app.entity.TblUsers;
import com.funo.wcity.app.service.TblUsersService;

@Service("tblUsersService")
public class TblUsersServiceImpl implements  TblUsersService {
	@Resource(name="tblUsersDAO")
	private TblUsersDAO tblUsersDAO;
	
	public List getTblUsersList(Integer idUser,Integer idUserMail) {	 
		return this.tblUsersDAO.getTblUsersList(idUser,idUserMail);
	}

	public TblUsers getTblUsers(Integer idUser) {
		 
		return this.tblUsersDAO.get(idUser);
	}

	 
	public void saveTblUsers(TblUsers tblUsers) {
		 this.tblUsersDAO.saveOrUpdate(tblUsers);
	}
   
}
